package com.bdqn.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.entity.PmsSku;
import com.bdqn.entity.responseDate.pmsProduct.PmsSkuDto;
import com.bdqn.mapper.PmsSkuMapper;
import com.bdqn.service.PmsSkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 商品sku表 服务实现类
 * </p>
 *
 * @author hunter
 * @since 2022-04-30
 */
@Service
public class PmsSkuServiceImpl extends ServiceImpl<PmsSkuMapper, PmsSku> implements PmsSkuService {

    @Autowired
    PmsSkuMapper pmsSkuMapper;
    @Override
    public Integer rollbackInventory(Integer skuNum, Long skuId) {
        return pmsSkuMapper.rollbackInventory(skuNum, skuId);
    }
}